/*
clean_icrisat_garg2020
started 1/29/2021
paul stainier
*/

***************************
*replace with own directories
***************************
clear all
*grayscale
set scheme s2mono

local input = 
local output = 
local build_path = 


***************************
*toggle yes/no to decide
*which programs to run
***************************
local clean_icrisat = "yes"


if "`clean_icrisat'" == "yes"{
	cd `input'
	use icrisat_crops_analysis, clear
	keep year district lyield lyield_m
	rename district icrisat_district
	cd `build_path'
	outsheet using icrisat_districtyear_build.csv, comma replace
}

